package org.softmed.persistence;

import java.util.Collection;
import java.util.List;
import java.util.Map;

public class PersistenceProviderAnalyser {

	public void stopProviders(Collection<PersistenceProvider> providers)
			throws Throwable {
		for (PersistenceProvider persistenceProvider : providers) {
			persistenceProvider.stop();
		}
	}

	public void refreshClassDefinitions(
			Collection<PersistenceProvider> providers) throws Throwable {
		for (PersistenceProvider persistenceProvider : providers) {
			persistenceProvider.refreshClassDefinitions();
		}
	}

	public void deleteDatabases(
			Collection<PersistenceProvider> providersToDelete) throws Throwable {
		for (PersistenceProvider persistenceProvider : providersToDelete) {
			persistenceProvider.erase();
		}
	}

}
